< previous page page_191 next page >

Page 191
DATA TYPEDECLARATIONCALL
NULLByVal As LongZero or variable containing zero.
ByVal As Any0& or Long variable containing zero.
As AnyByVal 0& or ByVal with a Long variable containing zero.
StringByVal As StringString buffer preinitialized to the necessary buffer length.
ByVal As AnyString buffer preinitialized to the necessary buffer length.
As AnyString buffer preinitialized to the necessary buffer length preceded by ByVal operator.
As ByteFirst byte in a byte array to load with an ANSI string. String will need to be converted to Unicode before assigning to VB string.
ByVal As LongAddress of first byte in a byte array to load with an ANSI string obtained using the VarPtr operator. String will need to be converted to Unicode before assigning to VB string.
LongAs LongLong variable to load with the data.
ByVal As LongAddress of Long variable obtained using the VarPtr operator.
As AnyLong variable to load with the data.
BinaryAs ByteFirst byte in a byte array to load with binary data.
As AnyFirst byte in a byte array to load with binary data.
ByVal As LongAddress of first byte in a byte array to load with binary data obtained using the VarPtr operator.
Table S14-1: How to Handle Different Data Types

Stop!
If you have come up with a code solution on your own, take a look to see which of these two approaches it uses. I encourage you to then take a break and attempt to implement the solution using the other approach. This will help you thoroughly understand the options that are available to you.

 
< previous page page_191 next page >